package br.com.absolutech.study.chapter4.p174;

public class OperadoresLogicos {

    public static void main(String[] args) {

	/* teste 1 */
	int z = 5;
	if (++z > 5 || ++z > 6)
	    z++;
	System.out.println(z);

	z = 5;
	if (++z > 5 | ++z > 6)
	    z++;
	System.out.println(z);

	/* teste 2 */

	boolean t = true;
	boolean f = false;
	System.out.println("! " + (t & !f) + " " + f);
	//                       true  true       false

    }

}
